package com.example.ucf;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

Button bt_novoJogo;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        UCF_Manager.inicializaTimes(this);
        
        bt_novoJogo = (Button)findViewById(R.id.Bt_NovoJogo);
        bt_novoJogo.setOnClickListener(bt_novoJogoListener);
    }
    
    OnClickListener bt_novoJogoListener = new OnClickListener() {
		public void onClick(View v) {
			Intent i = new Intent(getApplicationContext(), NovoJogo.class);
	        startActivity(i);
	        // finish(); // Somente se nao puder voltar de tela
		}
	};

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
	
	/*
	SurfaceView sv;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        sv = new UCF_SurfaceView(this);
        setContentView(sv);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    */
}
